package com.kfit;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/templates")
public class TemplateController {
	/**
	 * 返回html模板.
	 */
	@RequestMapping("/hello")
	public String helloHtml(Map<String, Object> map) {
		map.put("hello", "from TemplateController.helloHtml");
		return "hello";
	}

	@RequestMapping("/helloFtl")
	public String helloFtl(Map<String, Object> map) {
		map.put("hello", "from TemplateController.helloFtl");
		return "helloFtl";
	}

}
